Adding further methods to the slider plugin.