Somewhat wild idea. New type of group layer that allows to specify an operation to be applied to all the sublayers. Examples of operations: median, mean, sum, standard deviation.
For example for "mean" operation output is pixelwise average of the pixel values in each layer in the group operation layer.
Use case - combining multiple layers