fixed swipe js case for 2 slides