refactored the slider functionality to a own class that the observer uses