LPS-41181 - Documents and Media pagination should not display all pages at once

https://issues.liferay.com/browse/LPS-41181

https://issues.liferay.com/browse/AUI-1264