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.
Merge pull request #24 from jonmifsud/patch-1

Fix the Pause functionality