left and right swipe dismiss implementation