In slices, define self.n_macroparticles with dtype 'uint32'