If room is a problem, the gate could be made to pivot on the bottom corner.
You can use a few of those shocks that are on the rear lift gate of a suv or small car trunk.
Instead of a rolling or sliding gate, if it lifted from one side or the other, it would save room, and make it look kinda...