slider now works as desired