Counting the bytes used is useful - you only have 2K of SRAM to store variables in.
If you have two 8x8x8 arrays, one that is being displayed and one that is being created to be displayed next,
that is 8x8x8x2 = 1024 bytes of memory used right there.
What other variables do you have?