refactored slider to use generated accessor