Update slider to dispatch events and have a set method.