add class if scrollbar is not necessary