Spontaneous shear flow in confined cellular nematics