Not enough input 🙄
Need more info to understand the problem.
You will need to elaborate more on your question as you don't state how or where you intend to use or or what you are trying to actually filter in a gallery.
Old forum posts can help here, do a search for more...
Along with API Reference and code examples here.
Wishlist Page is the new official platform for requesting new features. You can vote, comment, and track the status of the requested features (requests from this page will be migrated to the new Wishlist soon).