Hanging them from a ceiling is probably the most space efficient way. I have hooks in the floor joists in my basement that allow me to hang bikes vertically. Another way would be a long rod suspended from the ceiling with S hooks to hang the bikes on. That would allow adjusting them as close together as possible.