Refactor Slider to use refreshRendering instead of _setXXXAttr.