Create thread to update the slider, and set slider listener