Converted swiper.js to library