fixing issue with slides advancing after swipe