The amount the piston moves is based on how much fluid the clutch master sends to the slave. That movement amount is the same regardless if the piston is sitting way back inside the slave or is sitting near the slave opening.
The piston in the slave is spring loaded and will be positioned in the slave body based on where the push rod causes it to sit. If the push rod is lengthened, the piston will be further back inside the slave body. If you shorten the push rod, then the piston will be closer to the slave body opening. That is why when you shortened the push rod the piston moved far enough forward that it then escaped from the slave body when you engaged the clutch.
There are parts missing in the picture below, but you can see how the piston has a spring behind it to provide flexibility with the piston positioning.
View attachment 39390