Remove global definitions for sliderCurrentPos.

No more global definitions are used.