Added slider code.