style is working for the slider