Implemented changing points based on slider value