I would install a matrix like this:

The row group is based on the expression:
=Ceiling(RowNumber(Nothing) / 3)
The column group is based on the expression:
=(RowNumber(Nothing) - 1) Mod 3
i.e. we group based on the line number of each line.
This gives the required results for your data:

source share