By default, WordPress sets the spacing between photos according to the number of columns in the gallery. First thing that you need to do is to install and activate Envira Gallery plugin on your WordPress site... then check out this guide on how to install and activate Envira.. Upon activating the plugin, you need to go to Envira Gallery » Add New from your WordPress admin backend.. To learn more about gallery settings, you should check out this guide on how to create gallery with thumbnails WordPress.. After adding the photos, you need to scroll down to Config tab and look for Number of Gallery Columns option.. then you need to scroll down to set the values for Column Gutter Width and Margin Below Each Image... Now you can hit Publish button from right side of your screen and go ahead to display this image WordPress.. Once published, you'll see Envira Code widget on the right side of your screen under Publish widget. You should visit your website to see the gallery with added spacing that will look like as shown in this image below..
Read more