Change layout for pagination.