Code review changes of the slider