added swipe mode for pagination