Adding paging to layers tab