added slider code made by zephyr