Use the Quick Composite node to composite a front clip and a back clip using a matte clip. The Quick Composite node menu is similar to the Quick Composite module in the Effects menu. See Quick Compositing.