created macro for sliders