1 ) Please install and activate plugin – FooGallery.
2 ) Once it’s installed, a new FooGallery option will appear on your dashboard.
3 ) Click “Add Gallery” > From the gallery setting drop down, select “Masonry Image Gallery”.
4 ) Add as many photos to it as you want. You could adjust the width of the thumbnail images, columns, hover effect…etc here as well.
5 ) Save the gallery once you’re happy with the settings.
6 ) Copy the gallery shortcode and paste it in a new page, posts or portfolio page.