Spanwise averaging

Dear everyone,

I have a 3D configuration with slip conditions in the spanwise faces. So, since the spanwise faces ahave no effect on the flow, I would like to do spanwise averaging by selecting severals slices in the longitudinal direction.
Could you please help me.

Moussa