If you want to calculate the average of the activations of different layers, you could simply add them and divide by the number of activations (3 in your case).
I’m not sure, what “average of layers” means, but if you want to average the parameters of different layers, you could use this approach 48.