Added function to initialize slider, debugging slider controls