Bug fix for slider swipe