# Product galleries

Product galleries that have syncing sliders needs extra step make them work flawlessy after importing into existing site. Regarding to [Product gallery with thumbnails](/tutorials/product-gallery-with-thumbnails.md) you need to add ID of these 2 query loops to code snippet.

1. Copy IDs of these 2 loops inside sliders\
   &#x20;![](/files/o8CitMEiiJjZ126eErme)
2. Go to Code Snippet plugin to "Get product gallery image IDs" and paste them here:\ <img src="/files/gi3w7xVxukoiRnzWZpzu" alt="" data-size="original">

```php
add_filter( 'bricks/posts/query_vars', function( $query_vars, $settings, $element_id ) {
    // Define an array of element IDs for which the filter should apply
    $target_element_ids = array('ygskej', 'edsgfi', 'nvlcty', 'grfmlt', 'mzflmn', 'teypju', 'mmyxbc'); // Add your element IDs here
```

Each ID should be wrapped inside ''. Example: 'ygskej'


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.brickstheme.com/common-issues/product-galleries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
