Adding Behavior for Slider.js.

you don't need this if you use `api.getElement` - by default it throws the error if the element isn't found (or the option isn't set).