swipe events on gallery