calling next or previous function always that a swipe occurs