fixing mobile issue with swipe