Added onInit event for Sliders

Sliders do not have an event handler for initializing yet. This commit adds an 'onInit' event to Sliders so functions can be called when initializing them.