refactor swapper to support slick js slider