Scrolling horizontally (like the Coda slider) but resizing vertically as needed

Hello, folks!

I would like to have an effect like the Coda slider, where I have multiple “panels” that can be scrolled to with tabs.

The problem I am having is that I don’t know how much content is going to be in a panel, and thus I have no idea what its height is going to be.

Can anyone give me some basic pointers to get me started?