Fixed an issue with the reset index of the slideshow resetting to the array length value, instead of the the last index value