working on gallery swipe functionality