  });
      function createSwiper(index, _direction, time, type) {
          var swiper = new Swiper(".swiper" + index, {
              pagination: {
                  el: ".pagination" + index,
                  type: type
              },
              lazy: {
                  loadPrevNext: true,
              },
              direction: _direction,
              preloadImages: false,
              paginationClickable: true,
              loop: true,
              autoplay: {
                  delay: tim