cleanup slider code