fix #524 slider height issue

Slider height is 0 in some browsers

Close #536