update slider value during slide