You can also precomp the those layers and then stretch the outer comp as single entity. Depending on what you are doing in that inner precomp you may need to use the “Continuously Rasterize” button (he little sun icon just to the right of the layer name) in the outer comp.
Keep in mind that if those layers are footage, some ways of stretching them don’t render the missing frames (from expanding the time) well and others can do a fairly decent job. Time Stretch and Enable time Remapping can only do so much interpolation whereas the time warp can “invent” the missing frames (within limits). Also older versions of AE don’t have interpolation features in the remapping algorithms. (but the Time Warp effect does)
If those layers are animated elements, AE will interpolate all the keyframes correctly so that all motion and transformations are smooth even though you have increased the time they happen over, even in the outer comp where technically no keyframes exist.