adds filtering for locations on gallery page