add swipe listener