changes to index to use slider
changes to index