fix swipe animation