swipe left and right function

able to swipe right