slider code style