changes divs for pagination