title: How to use multiple filters separately in one function
body: <p>I'm using a filter (css class of the anchor) to select images for a featherlight lightbox. All images with one class are shown in one gallery. So I call each function separately. I use this code to show 2 different galleries on one page:</p>
  
  <pre><code>$('#content').each(function(_i, gallery) {
    $(gallery).featherlightGallery({
      variant: 'gal',
      filter: '.featured-image1'
    });
  });
  $('#content').each(function(_i, gallery) {
    $(gallery).featherlightGallery({
      variant: 'gal',
      filter: '.featured-image2'
    });
  });
  </code></pre>
  
  <p>This 2 function are equal, only the filter changed. If there are more galleries I wonder if it is possible tho simplify this in one function. I've yet no idea, so ask this question here.</p>