I thought about that as well but I found a better solution, which is to just move the rows to a different sheet. I don’t need the rows to be on the main sheet, I just need them to be visually next to each other without breaking the structure of the spreadsheet, which moving them to a second sheet would do.
I could but someone else reminded me of a better solution, which was to just move the rows to another sheet.