8x8x8 multiplexed LED cube with an Arduino Mega 2560

What would you recommend to consider a layer in the cube?

You probably set up in memory the bit pattern for all 512 bits anyway in an array. How they are physically wired is not critical, it would just be whether you go through the array X direction first or Y direction first.