Slider using native JS using Object Oriented Principles