Position labels properly when slider is hidden

If the slider is updated while it is hidden (by javascript) the labels
will now be positioned correctly when the slider is shown.