renamed and improved slider example