added slider code