The technique is used during the second and , occasionally , third trimester of pregnancy .