Fixed error in setIndex for random slide order