Fix the Pause functionality

Currently the pause only works if an animation is already going on. One would usually use the pause function to stop the slider from continuing to autoplay.