diff --git a/galleryslider.module b/galleryslider.module
index 52553c2..ff875fd 100644
--- a/galleryslider.module
+++ b/galleryslider.module
@@ -1,89 +1,166 @@
 <?php
 
-namespace Drupal\galleryslider\Plugin\views\style;
+/**
+ * @file
+ * Contains the Gallery Slider for Multiple Images module.
+ */
 
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\views\Plugin\views\style\StylePluginBase;
+use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
- * Style plugin to render each item into a simple carousel.
+ * Implements hook_help().
  *
- * @ingroup views_style_plugins
+ * @param string $route_name
+ *   The name of the route.
+ * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
+ *   The route match object.
  *
- * @ViewsStyle(
- *   id = "galleryslider",
- *   title = @Translation("Gallery Slider"),
- *   help = @Translation("Displays rows as a gallery slider."),
- *   theme = "galleryslider_views",
- *   display_types = {"normal"}
- * )
+ * @return string
+ *   The help output.
  */
-class GallerySlider extends StylePluginBase {
-
-  /**
-   * Indicates whether the style plugin allows the use of row plugins.
-   *
-   * @var bool
-   */
-  protected $usesRowPlugin = TRUE;
+function galleryslider_help(string $route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    // Main module help for the simple module.
+    case 'help.page.galleryslider':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('simple Carousel: Download code at drupal.org') . '</p>';
+      $output .= '<p>' . t('Video tutorial will be uploaded soon') . '</p>';
+      return $output;
 
-  /**
-   * Indicates whether the style plugin supports custom CSS class for the rows.
-   *
-   * @var bool
-   */
-  protected $usesRowClass = TRUE;
+    default:
+  }
+}
 
-  /**
-   * Defines the default options for the style plugin.
-   */
-  protected function defineOptions() {
-    $options = parent::defineOptions();
+/**
+ * Implements hook_theme().
+ */
+function galleryslider_theme() {
+  return [
+    'galleryslider' => [
+      'variables' => ['items' => NULL, 'settings' => NULL],
+    ],
+    'galleryslider_views' => [
+      'variables' => [],
+    ],
+  ];
+}
 
-    $settings = _galleryslider_default_settings();
-    foreach ($settings as $k => $v) {
-      $options[$k] = ['default' => $v];
+/**
+ * Themeable for galleryslider.
+ *
+ * @param array $variables
+ *   An associative array containing:
+ *   - items: The items to render.
+ *   - settings: The settings for the gallery slider.
+ */
+function template_preprocess_galleryslider(array &$variables) {
+  $items = $variables['items'];
+  $settings = _galleryslider_format_settings($variables['settings']);
+  $variables['attributes']['class'][] = 'slider';
+  $variables['attributes']['class'][] = '';
+  $variables['attributes']['data-settings'] = json_encode($settings);
+  $html = '';
+  if (!empty($items)) {
+    $i = 0;
+    $html .= '<ul data-title="Row">';
+    foreach ($items as $item) {
+      $html .= '<li  ' . $i . '>' . render($item) . '</li>';
+      $i++;
     }
-    return $options;
   }
 
-  /**
-   * Builds the options form for the style plugin.
-   *
-   * @param array $form
-   *   The form structure.
-   * @param \Drupal\Core\Form\FormStateInterface $form_state
-   *   The form state object.
-   */
-  public function buildOptionsForm(&$form, FormStateInterface $form_state) {
-    parent::buildOptionsForm($form, $form_state);
-    $image_grid = [
-      'true' => $this->t('Show'),
-    ];
-    $form['imgGrid'] = [
-      '#title' => $this->t('Show small pics at the bottom'),
-      '#type' => 'select',
-      '#default_value' => $this->options['imgGrid'],
-      '#empty_option' => $this->t('Nothing'),
-      '#options' => $image_grid,
-    ];
-    $menu_type = [
-      'grid' => $this->t('Grid'),
-      'nav' => $this->t('Nav'),
-    ];
-    $form['menu'] = [
-      '#title' => $this->t('Menu Types'),
-      '#type' => 'select',
-      '#default_value' => $this->options['menu'],
-      '#empty_option' => $this->t('Nothing'),
-      '#options' => $menu_type,
-    ];
-    $form['speed'] = [
-      '#type' => 'number',
-      '#title' => $this->t('Transition Speed'),
-      '#default_value' => $this->options['speed'],
-      '#description' => $this->t('Transition speed in milliseconds.'),
-    ];
+  $html .= '</ul>';
+  $output = [
+    '#type' => 'markup',
+    '#markup' => $html,
+  ];
+  $variables['output'] = render($output);
+}
+
+/**
+ * Prepares variables for Views galleryslider carousel templates.
+ *
+ * Default template: galleryslider-views.html.twig.
+ *
+ * @param array $variables
+ *   An associative array containing:
+ *   - view: A View object.
+ */
+function template_preprocess_galleryslider_views(array &$variables) {
+  $handler = $variables['view']->style_plugin;
+  $settings = _galleryslider_format_settings($handler->options);
+  $variables['attributes']['class'][] = 'slider ';
+  $variables['attributes']['class'][] = '';
+  $variables['attributes']['data-settings'] = json_encode($settings);
+  template_preprocess_views_view_unformatted($variables);
+}
+
+/**
+ * Settings to display view at front page.
+ *
+ * @param array $variables
+ *   An associative array of variables.
+ */
+function galleryslider_preprocess_page(array &$variables) {
+  $node = \Drupal::routeMatch()->getParameter('node');
+  $frontpage = \Drupal::service('path.matcher')->isFrontPage();
+  if ($node || $frontpage) {
+    $variables['#attached']['library'][] = 'galleryslider/galleryslider';
   }
+}
+
+/**
+ * Default settings for simple.
+ *
+ * @param string|null $key
+ *   The key to retrieve from the settings array.
+ *
+ * @return mixed
+ *   The value of the settings key or the entire settings array.
+ */
+function _galleryslider_default_settings(?string $key = NULL) {
+  $settings = [
+    'menu' => 'grid',
+    'imgGrid' => '',
+    'speed' => 300,
+    'image_style' => '',
+    'image_link' => '',
+  ];
+
+  return $settings[$key] ?? $settings;
+}
+
+/**
+ * Return formatted JavaScript array of settings.
+ *
+ * @param array $settings
+ *   The settings array.
+ *
+ * @return mixed
+ *   The formatted settings array.
+ */
+function _galleryslider_format_settings(array $settings) {
+  $settings['speed'] = (int) $settings['speed'];
+  unset($settings['image_style']);
+  unset($settings['image_link']);
+
+  return $settings;
+}
 
+/**
+ * Convert a string of settings to an array.
+ *
+ * @param string $str
+ *   The string to be converted to an array.
+ *
+ * @return array
+ *   The converted array.
+ */
+function _galleryslider_string_to_array(string $str) {
+  $str = trim($str);
+  $str = str_replace('[', '', $str);
+  $str = str_replace(']', '', $str);
+  $str = explode(',', $str);
+  return $str;
 }
