prevent horizontal scroll from showing when not necessary