fix nmslider for auto layout