In a pocket on the underside of the abdomen
Encyclopaedia Britannica: "Diffusion of gases occurs between the haemolymph circulating within thin leaflike structures (lamellae) stacked like pages in a book within the pocket and the air in spaces between these thin structures".