pagination in one line so it's not ovlerlaped