Added slider code