Chang layout of pagenation