Adjust space for pagination