Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

GAL-006 Published

Thumbnail Gallery UI Design (Main Image + Thumbnails)

A thumbnail gallery UI that shows the photos of one subject as a single large photo with a row of thumbnails beneath.

Wireframe (desktop) | Thumbnail gallery

Thumbnail gallery UI design (desktop wireframe)

Wireframe (mobile) | Thumbnail gallery

Thumbnail gallery UI design (mobile wireframe)

What changes on mobile

  1. Thumbnails in a scrollable row: Six in one row would be too small to press, so each keeps its width and the row scrolls sideways.
  2. Subject information under the photo: Beside the photo, the large photo would shrink.

Before you choose this pattern | Thumbnail gallery

Good fit

  • Many photos of one subject to show
  • Detail pages for products, properties, projects
  • Information such as price or specifications sits beside the photos

Poor fit

  • Many projects to compare in a list (the <a href="/patterns/en/gallery-grid/">grid gallery</a> works better)
  • Only one or two photos (showing them side by side from the start is enough)

Why this wireframe works | Thumbnail gallery

Many photos without a long page

Only one large photo is shown, with the others small beneath, so many photos can be viewed without lengthening the page.

Which photo is current, by border and count

The thumbnail of the current photo has a thick border and aria-current, and the count “1 / 6” sits under the large photo.

The caption changes with the photo

The caption under the large photo is rewritten each time the photo changes, so what the photo shows is conveyed with it.

Previous and next buttons, and the keyboard

“Previous” and “Next” buttons sit either side of the large photo, and ← → move through the photos too. On mobile the thumbnails sit in a row that can be scrolled by finger.

Common mistakes | Thumbnail gallery

Thumbnails with no button name

A button that is only a small photo is not described by screen readers. Name it by content and action, such as “Show the entrance photo”.

Mixed ratios that change the height on every switch

When photo ratios differ, the large photo’s height changes with each switch and the information beneath jumps. Fix the frame’s ratio and fit the photos inside it.

Photos that switch automatically

Automatic switching changes the photo while the reader is still looking. Leave switching to the reader.

No way to enlarge the large photo

Readers who want detail may find even the large photo too small. One approach is to enlarge it over the screen when pressed (see the lightbox).

FAQ | Thumbnail gallery

Thumbnails below or beside the large photo?

Below for landscape photos and beside for portrait ones keeps more room for the large photo. On mobile, below is the norm either way.

Should all the photos load up front?

Loading every large photo up front slows the page. Load the first large photo and the thumbnails, and fetch the other large photos when chosen.

How many thumbnails?

Six to eight in one row is a comfortable guide. Beyond that, make the row scroll sideways as on mobile, or reduce the photos.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published