Added variable for slider, change initial value of slider