update pagenation and index slider