8x8x8 cube code help

thank you,

But I think someone wrote a code ready for a 8x8x8.

The cube is only turning on one layer at the time right? so it the 595 should be ok.