Added option to disable continuous-sliding

Now it is possible to set continuous to false to make sure the slider stops at the last slide, instead of loading the first slide again.