Fixed bug with width being set to NaN if not specified which broke slider in some browsers