Fix Pause at End of Images

Fixed the pause that occurs at the first and last image of the slider.