Added slider method