Input: popcorn main slider.
The main slider pushes blue slider move down through red spring. At the end of the slot cut on orange workpiece, yellow nuts stop the blue slider, the main slider continues going down and turns red tool out of the slot via gear rack drive and violet conrod.
There is no need of relief cut at the workpiece bottom.