Truncate list of lines for each tab

Keep amount of lines equal to backlog amount + 5% to prevent a memory leak.