improve swiper init process