osc: correct calculation of slider position

calculation the mouse position on the slider relied on how the
hitbox is positioned, change it according to new hitbox size.