Let subdivision do all the hard work for you.
make a 12x12x12 block and subdivide it.
From a front/side view, select the top two rows of vertices and flatten the selection vertically. Do the same with the bottom two rows. Then you will have a Mac Mini