check if _itemsPerRow == 0 to avoid divide by zero