LED Cube - Drain Current Resistor for MOSFET Switch
You can't do it with 1 common resistor for a whole layer. You would very rarely have all LEDs illuminated in a single layer, so you would be overdriving the LEDs that were illuminated.  You would need to put a resistor per LED on the cathode side.