First version of slider without any UI events
First version with UI event handler