gotoAndStop button

Is there a way of using this gotoAndStop code to get layer name, then frame number?

for example I have like frames in 1,2,3,4,5 and I have another frames to come in but I wanna put them in the same numbers but would show different image/texts. If this makes sense :(.

so like gotoAndStop(layer,frame 2); to illustrate where I wanna put the new frames I highlighted them frames and layer.