Now that you feel better, use your portal to reach these crates and cakes. Once your inside, throw the crate on the turrets with a portal on top of them. Finally, use the two crates to jump higher and reach the switch. 