add height auto to shortpage and longpagec