add link_size and alignment for pagination