Fixing the slide index.