Scale down number of columns when not enough rows are available.