Fix scroll-flicker by reducing the number of lines