How to change small images width

Topic summary

A Shopify store owner wants to modify product variant image display to show 4.5 images instead of 4 complete images, with the fifth image partially visible to indicate scrollability.

Solution Provided:

  • Add CSS code to adjust thumbnail width to 20% (allowing 5 images to fit)
  • Code targets screens wider than 900px using media query
  • Modifies .thumbnail-list__item.slider__slide width property

Implementation Options:

  1. Add code to Custom CSS section in theme customizer (Product Page settings)
  2. If Custom CSS is full, add to base.css/theme.css/style.css/main.css/custom.css via Edit Code

Outcome:
The CSS solution successfully resolved the issue. The store owner confirmed the problem was fixed after implementing the code in their theme files.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hello guys as you can see in the picture there are 4 variant images visible without scrolling. How can I change that and make it like 4,5 images. Basicall 4 complete images and the 5th should be half, so that the people would know that there are more images and they should scroll.

Hello @NikosBat

Can you please share your store URL so I can check this?

1 Like

Hi @NikosBat ,

Thank you for reaching out to the Shopify community. I’d be glad to assist you. Could you kindly share your store URL and
password (if it’s password-protected) so I can review it and provide you with an update?

1 Like

Hi there

  1. Go to Customize

  1. Select Product Page

  1. Paste the code in Custom CSS section

code:

@media screen and (min-width: 900px) {
  .thumbnail-list.slider--tablet-up .thumbnail-list__item.slider__slide {
    width: calc(20% - 2rem) !important;
  }
}
1 Like

Hello CodingFifty, of course here is the url and password:

https://www.nistore.de/products/3-in-1-dog-hair-brush-cat-hair-brush-electric-pet-cleaning-brush-steam-spray-brush-massage-hair-removal-comb-anti-flying-brush

nikthe

Hey Brsik_code and thanks for answering, my Custom CSS code is already full i cant add more codes in there. Can i paste the code somewhere else?

Hi @NikosBat ,

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

@media screen and (min-width: 900px) {
  .thumbnail-list.slider--tablet-up .thumbnail-list__item.slider__slide {
    width: calc(20% - 2rem) !important;
  }
}
1 Like

Thank you very much CodingFifty, that solved my problem

You’re welcome! @NikosBat

He copied my answer :joy: