add looping for swipes