Slider index mostly refactored

maybe revisit the functions to see if we can clean them up and tidy them
up a little bit more.