Scrollable tabs to handle overflow

How to make a scrollable tabs for ionic 1?
I have create tabs but in mobile, it will shows in two rows, which is not good to look at for user. It may not shows in codepen, but mobile screen is vertical and small, it will shows two rows.

I need when I slide a page, the tabs will move accordingly.