Transversal and longitudinal mixing in compound channels