When I was towing my 5er I had a tool box between the hitch and the front of the bed. Looked similar to this google photo...

Then I had the FOLD-A-COVER hard folding bed cover that folded up on top of the tool box... Everything cleared with the trailer hooked up.
Looked like this google photo with the fold-a-cover folded up.

When folded down it looks like this google photo... The front folding panel folds back to allow access to the tool box...

Have been using the FOLD-A-COVER for the past two trucks now... I don't tow the fifth wheel anymore but still have the fold-a-cover installed. Locks up great and good place to keep things safe...

Roy ken