Fixed an issie in swipe and navigation with dots