use swipe to paginate