You can still access slice from model.layers.slic1.
If you want to save a nn.Module into another one, without it being detected as a child module, you can “hide” it by putting it into a list/dict: self.slic1 = [slic1,] and access it as self.slic1[0].