implement swipe actions in gallery