# 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](https://docs.brickstheme.com/tutorials/product-gallery-with-thumbnails "mention") you need to add ID of these 2 query loops to code snippet.

1. Copy IDs of these 2 loops inside sliders\
   &#x20;![](https://577283513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3MMybclNPfdZUpnUggUT%2Fuploads%2FSlJnbEVrbCGRHHzjkNoa%2Fimage.png?alt=media\&token=a7888735-7166-444b-9207-6631e478c12f)
2. Go to Code Snippet plugin to "Get product gallery image IDs" and paste them here:\ <img src="https://577283513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3MMybclNPfdZUpnUggUT%2Fuploads%2FWkIrxcY87PVJNLD6hHSs%2Fimage.png?alt=media&#x26;token=992b1602-1f28-49f5-a9b4-fc7f2c77457f" 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'
