What if you have the hatch fit over the wall(part of the wall on the hatch). Then you would only need a small fold up panel hinged on the inside side wall.
The back-wall could also be hinged to the hatch and drop down after the hatch is up.
Just some thoughts