If you remove the
Layout code, the results might resemble what you get with some PDF

.
Think moving into a new house (living room):
You stand at the entry as they unload the van: Put that THERE, Put that over there, put that back there...
The items placed do not need to arrive in order and must be instructed where to go. OTOH a normal ebook is always
just below the last item