Fixed bug on previous button

Fixed bug on previous button that rarely does not work anymore. Index is -1 instead 0 when there isn't crsl-active. On first slide, it returns to last slide.