making slider resize itself on viewport width change