capture slider value