how am i going to use transistors to control the the current for each layer?

Generally, folks seem to bend the "layer" pins out at a right angle (cathode in this case), and leave the column pins straight to connect to the LED below it anodes in this case).