Implement swipe functionality