Created Slider util and removed the creation of it from other classes