Cholesteric pitch-transitions induced by a magnetic field in a sample containing incomplete number of pitches