Divide a mesh in Z


I’m trying to divide a mesh in Z but I don’t know how.
I created a grid with some boxes (on picture1) but I would like to divide in Z with Iso curve too to have small boxes.
Is it possible ? Or Do I have to do it at the beginning of the process ?
Thanks a lot