Limited the number of categories drawn on one row.