Inside of the frame, you need a span that contains the whole panel:
And each page is a span with these settings:
display:inline-block; // it will align on the same line
vertical-align:top; // it will align on the top
white-space:normal; // override white-space property because, in firefox, a child inherits white-space from its parent.
That makes:
In order to slide a page, we modify margin-left of the inner_frame