Hrm, yeah that’s a struggle. If you’re not trying to display the books right now, I liked using standing plastic bins because you can fit a lot of books in horizontally and vertically.
And then they’re useful for general storage when you take the books out!