implement swipe both sides