working on swipe images functionality