update swipe and slide