Add change event handler to slider.