finished swiper functionality