add animation on swipe