How to stack small wooden slabs?

Hi - I am running a small production and am looking for an easy way to stack wooden blocks that are cut before they are put into a magazine to be milled. Any recommendations would be really appreciated!

pictures here:

we are also looking to do stacking that requires front back and up down orientation, but I would like to first see what options there are for this first part.