api: fix the class index column count to avoid horizontal scrolling