Add events to slider control.