can i make the matrix in this code smalerYes. Use an array of bytes as you have now but use the bits in each byte for the ones and zeroes. The arrays will take 1/8th of the space.
You can access the value of each bit using bitRead(). See http://arduino.cc/en/Reference/BitRead