adding swipe functionalities on mobile devices