I was photographing a small beetle and ran into the problem that it was just 0.5 inches long, and the macro setting on my camera failed to produce a sufficiently detailed and crisp image. Therefore I placed the beetle under a 5× magnification microscope. However, the focal plane was not as thick as the beetle. Therefore, I could only have the feet or the head/top in focus but not both:

How can the beetle be photographed entirely in focus through the 5× scope?