Has Anyone been able to build a smaller frame?

Just hinge to wall and it will take up very little space shelving units with rolling wheels can be used in front