LibreOffice Writer wrapping cells to next row

I’ve entered a set of photos with accompanying text into a LibreOffice Writer table, one photo per cell, in alphabetical order. For example:

CellA CellB CellC CellD CellE

CellG CellH CellK CellM CellN

CellP CellQ CellR CellS CellV

I want to be able to have the table adapt to page size and orientation as new cells are inserted other than at the end. For example, I want to enter CellF between CellE and CellG, to yield this table:

CellA CellB CellC CellD CellE

CellF CellG CellH CellK CellM

CellN CellP CellQ CellR CellS

CellV

So that the existing cells following the inserted cell wrap to the next rows as needed in such a way as to maintain 5 cells across the page (or whatever fits on the page). Any ideas?