compute meanmap in a single step rather than looping over slices for inplane