I have always had trouble folding up the bed end as the support frame does not seem wide enough to go around mattress when it all folds. I had to always squeeze the mattress between the frame before i could fold it up. So I have changed the position of the pivot point on the fold out bed end frame and now the mattress fits between the frame when it folds.
I had to remove strips that clamp.the tent to the base to get access to the pivot point.
This is how it looked from factory. Frame is on the inside of bracket
So i drilled out factory rivert and drilled a hole in the pole so i could rivert it to the opposite side of the bracket
Now pole is attached to the outside of the bracket
I then dit the same to the other side.
I now have more room and do not have to squeeze the mattress between the frame to start folding up bed end.