hardend against NullPointerException
fixed #2: tried to lessen flickering by rendering the slider only when necessary; slider seems to flicker less, but is still not running smooth; (0.2.5)