Moving Array of Bricks

I am new to using Blender so I am going to need some assistance on this.

My line manager wants me to try to get a 3D array of bricks and get them to move in and out of them?

Any ideas on how to achieve this task?

try using this : https://i.stack.imgur.com/AQHvQ.png

i am not sure if i get u right but hit me up on discord and explain it to me and i might be able to help u (Paramatus#1024) Or just pm me here