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.
indentation update for previous commit

updated indentation to match source indentation (hopefully)
merged #11