Videos and image gallery

Hi. How can i achieve the image and video pagination gallery such as the link below

https://premium.wpmudev.org/project/wpmu-dev-dashboard/