Grid or slider? Choosing a layout for the Instagram feed on your website

The same posts can feel very different as a grid or as a slider. This guide explains how each layout works in Social Feed by grip space, which one suits which kind of page, and how to set the number of posts, columns, spacing and width so the feed looks right on both computers and phones.

Updated October 12, 2026

Grid and slider at a glance

Social Feed by grip space has two layouts: a grid and a slider. Both use the same square tiles, the same click and hover options, and the same account header. The difference is how the tiles are arranged and how visitors move through them.

GridSlider
ArrangementRows and columns. Posts wrap onto new rows.One row. Posts that do not fit continue to the side.
How visitors see moreBy scrolling down the pageBy swiping on a phone, scrolling sideways, or using the arrow buttons
Height on the pageGrows with the number of postsAlways one tile high
Posts visible without any actionAll of themAs many as the number of columns
Image loadingThe first row’s worth of images loads right away; the rest load as visitors scroll near themAll images load right away
Best forGallery pages, homepages with room to scroll, portfoliosNarrow spaces, product pages, sections between other content

You can switch between the two at any time in “Settings & preview”. The change appears on your site without changing the embed code, so it costs nothing to try both.

Grid: show many posts at a glance

A grid lines up your posts in rows, like your Instagram profile. Visitors see many posts at once without doing anything, which works well when the photos themselves sell: products, food, interiors, hairstyles, finished projects.

There is no separate setting for the number of rows. The grid fills each row with as many tiles as there are columns, then starts a new row, so the number of rows is the number of posts divided by the number of columns. Twelve posts in four columns make three rows; eight posts in four columns make two.

Because a grid grows downward, it works best where there is room to scroll: the lower part of the homepage, an “Instagram” or gallery page, or a section above the footer. With many posts the grid becomes tall, and the content below it moves further down the page. If something important comes after the feed, keep the grid short.

Slider: one row that visitors can scroll

A slider shows your posts in a single row. The number of columns sets how many tiles are visible at once; the rest of the posts continue to the right. Visitors can see more in three ways:

  1. Swipe left or right on a phone or tablet.
  2. Scroll sideways with a trackpad or a mouse that supports horizontal scrolling.
  3. Use the arrow buttons on the left and right edges of the row. Each click moves the row by most of its visible width, so visitors see a mostly new set of posts with each click.

The row snaps so that a tile always lines up with the left edge after scrolling, instead of stopping halfway through an image. The arrows loop: at the last post, the right arrow goes back to the first, and at the first post, the left arrow jumps to the end. That way the arrows never seem to do nothing.

The slider does not move by itself. There is no autoplay and no row of dots under the slider. It only moves when a visitor swipes, scrolls or clicks an arrow. Depending on the browser and operating system, a thin scrollbar may appear under the row.

Which one should you choose?

  1. Choose a grid if the feed is a main part of the page, or if you want visitors to see many posts without clicking or swiping.
  2. Choose a slider if space is limited, or if the feed is a small extra on a page that is mainly about something else.
  3. Not sure? Try both in the preview, then look at the real page on a phone as well as a computer.

How columns work on phones and narrow spaces

You set the number of columns once, from 1 to 8. You do not need a separate setting for phones. The widget looks at the actual width of the space it is placed in, not the width of the screen, and uses fewer columns when each image would get smaller than about 100 pixels wide. The number you set is the maximum; the widget never shows more columns than that.

This matters because a feed is often placed somewhere narrower than the screen: in a sidebar, in one half of a two-column section, or inside a page with wide margins. Measuring the real space means a 6-column grid in a sidebar does not turn into a row of tiny thumbnails. The widget checks again when the window is resized or a phone is rotated.

Here is roughly how many columns fit at different widths with the default spacing of 4 pixels, if you have set enough columns:

Width of the space for the feedMost columns shownTypical place
About 200 px1A very narrow sidebar
About 300 px2A typical blog sidebar
About 340–400 px3A phone screen, minus the page margins
About 500 px4Half of a two-column section on a computer
About 730 px7The content column of a tablet or a narrow page
WiderUp to the number you set (8 at most)A full-width section on a computer

Larger spacing between images reduces the number of columns that fit a little, because the gaps take up space too. The same rule applies to the slider: on a phone, a slider set to six columns shows about three tiles at a time, each large enough to recognize.

Tip: on most phones, any setting of 3 columns or more ends up as about 3 columns. If the feed looks good with 3 columns on a computer too, setting 3 gives the same look everywhere. If you want the feed to look busier on a computer, set 4 to 6 and let phones reduce it.

How many posts to show

The number of posts you can show depends on your plan: up to 16 on the Free plan, 30 on the Light plan and 50 on the Standard plan. In the dashboard, the number field shows the limit for your plan.

For a grid, choose a number that fills the last row. A half-empty last row looks unfinished. Because phones and narrow spaces use fewer columns, the safest numbers are ones that divide evenly by several column counts:

PostsFills full rows atNotes
61, 2, 3 and 6 columnsOne row on a wide page, two rows of three on a phone
81, 2, 4 and 8 columnsLeaves an incomplete row at 3 columns, which is common on phones
121, 2, 3, 4 and 6 columnsWorks well almost everywhere
161, 2, 4 and 8 columnsThe Free plan maximum; leaves one extra post at 3 columns
241, 2, 3, 4, 6 and 8 columnsA full gallery page on the Light or Standard plan

For a slider, the last row is not an issue, so the question is only how many posts visitors are likely to swipe through. On most pages, 10 to 20 posts are plenty. A slider loads all of its images right away (see the performance section below), so a very long slider makes the page load more images that most visitors never see.

Filters reduce the number of posts. If you limit the feed to recent posts or to posts with certain keywords, fewer posts than the number you set may match, and the last row of a grid may come out incomplete. Check the preview after you set a filter.

Spacing, width and font size

  1. Image spacing (0 to 40 pixels) is the gap between tiles. Small gaps of 2 to 6 pixels look like an Instagram profile. Larger gaps give a lighter, more “designed” look. With a spacing of 0, the images touch each other and form one block.
  2. Widget width (0 to 2,000 pixels) is the maximum width of the whole widget. The default is 1,500. On a narrower page, the widget simply uses the width available. Set it to 0 for no maximum. Lower it if the feed should stay narrower than the rest of a wide section, for example 800 pixels for a slider in the middle of a page.
  3. Font size (10 to 24 pixels) changes the text in the account header above the feed.

Tiles are always square, with slightly rounded corners, and the image fills the square. Portrait and landscape photos are cropped to the center of the square in the grid and the slider. When a visitor opens a post in the lightbox, the whole image is shown without cropping.

Layout recipes by page type

Page or placeLayoutColumnsPostsOther settings
Homepage sectionGrid4–68–12Account header and follow button on
Footer on every pageSlider, or a one-row grid6–86–16Account header off or small; small spacing
Product pageSlider4–510–16Caption keyword filter for that product line
Blog sidebarGrid2–36Account header on; spacing 2–4 px
Portfolio or gallery pageGrid3–424–50Click opens the lightbox with caption
Restaurant or caféGrid3–49–12Date range filter to keep it seasonal
Hair or beauty salonGrid39–12Lightbox with caption, follow button on
Online or local shopSlider4–612–20Caption keyword filter for new arrivals

Homepage. A homepage feed is mostly proof that you are active and that real people visit, eat, buy or book. One or two rows are enough. Put it after your main message and call to action, not before them.

Footer. A feed in a shared footer appears on every page, so keep it short. A single row of small tiles, as a slider or as a grid with as many posts as columns, adds color without making every page longer. For how to place the code once for the whole site, see the guides for WordPress, Shopify and HTML.

Product page. Visitors are there to decide on a product, so the feed should not compete with the price and the add-to-cart button. A slider placed below the product description works well. If you tag your posts with words or hashtags, the caption keyword filter can show only posts about that product line (for example “#linen”).

Blog sidebar. Sidebars are usually about 250 to 350 pixels wide. Two or three columns keep each image recognizable. Six posts make two or three tidy rows.

Click, hover and the lightbox

These settings work the same way in both layouts.

  1. On click: open the post larger in a lightbox on your site, open it on Instagram in a new tab, or do nothing. The lightbox keeps visitors on your site and is the best choice for most pages. Opening Instagram suits a feed whose main goal is to gain followers.
  2. In the lightbox, you can show the caption and the like count (the comment count appears next to it). There is always a “View on Instagram” link at the bottom. Visitors close the lightbox with the × button or by clicking outside it.
  3. Icon on hover: on a computer, hovering over a tile can darken it and show an Instagram icon with the number of likes and comments. You can also turn this off for a cleaner look. Phones have no hover, so visitors on phones see the tiles without the overlay.
  4. Account header: above the feed, you can show your profile picture, username and number of posts, with a follow button. You choose which of the three items to show, and you can change the button text and color.

The widget’s own text, such as the default follow button label, follows the language of your page: Japanese on Japanese pages, English on all others. Text you type yourself is shown as is.

Videos, Reels and carousel posts in each layout

Video posts and Reels appear as their cover image, in the grid and in the slider. Tiles do not play videos, so a feed full of Reels does not start several videos at once on your page. When the video can be played, the tile shows a play mark, and the lightbox plays the video with sound off at first and the usual controls. Instagram does not provide the video file for some posts, for example some videos with copyrighted music. Those posts appear as a still image with no play mark, and visitors can watch them on Instagram through the link in the lightbox.

Carousel posts (posts with several images) show a small “stacked squares” mark in the corner of the tile, as on Instagram. You choose whether the lightbox shows only the first image, or all images with arrows and a counter such as “2 / 5”. The tile always shows the first image.

Choosing which posts appear

Three filters, available in both layouts, let you control which posts appear:

  1. Date range: any time, the last 30 days, the last 90 days or the past year.
  2. Caption keywords: show only posts whose caption contains one of your keywords, or hide posts that contain them. Separate several keywords with commas.
  3. Post types: leave out video posts, show only Reels or leave Reels out, and leave out carousel posts.

Filters are set per widget. If you want a different selection of posts on different pages, for example one product line per product page, you need a widget for each selection (see the section on using several widgets below).

Performance: what each layout loads

A feed adds images to the page, so it has some effect on loading speed. The two layouts load images differently:

  1. Grid: the first images, as many as the number of columns you set, load right away. The other rows use the browser’s lazy loading, so they load only when the visitor scrolls near them. A tall grid at the bottom of a page therefore costs little until someone scrolls down to it.
  2. Slider: all images load right away. Lazy loading does not work well for a row that scrolls sideways, because images would appear blank for a moment after each swipe. This is why it is worth keeping the number of posts in a slider modest.

The widget is added to the page by a script, so it appears after the rest of the page has started to display. Content below the feed moves down when the feed appears. This kind of movement counts toward Cumulative Layout Shift (CLS), one of Google’s Core Web Vitals. Google’s web.dev considers a CLS of 0.1 or less to be good.

To keep the effect small:

  1. Place the feed lower on the page, below your main content, rather than near the top. Movement below the part of the page the visitor is reading is less disruptive.
  2. Avoid putting the feed above the largest image or heading of the page. That element is usually what Largest Contentful Paint (LCP) measures, and web.dev considers an LCP of 2.5 seconds or less to be good.
  3. Check your page with PageSpeed Insights before and after adding the feed, on mobile as well as desktop.

Accessibility and mobile experience

  1. No autoplay is a good thing. Content that moves on its own can distract visitors and is hard to use for some people. The W3C’s accessibility guidelines (WCAG) ask for a way to pause, stop or hide moving content that starts automatically and lasts more than five seconds. The slider only moves when the visitor moves it, so this does not apply.
  2. Keep tiles large enough to tap. The automatic column reduction keeps tiles at about 100 pixels or more. If you place the feed in a very narrow space, check that the tiles are still easy to tap on a phone.
  3. Do not hide important information in posts. Opening hours, prices and booking details belong in the text of your page. Captions appear only when a visitor opens a post in the lightbox, and many visitors never do.

Common mistakes

  1. A half-empty last row. 8 posts in a 3-column phone layout leave two posts alone in the last row. Choose 6, 12 or 24 posts instead.
  2. A slider with too few posts. If a slider shows 4 columns and has only 4 or 5 posts, there is almost nothing to swipe to. Use a grid, or show more posts.
  3. A very long slider. All slider images load at once. Fifty posts in a slider mean fifty images for every visitor, even if most never swipe.

Using a grid and a slider on the same site

The layout, columns, spacing and filters belong to the widget. If you paste the same embed code on several pages, the feed looks the same everywhere. To use a grid on one page and a slider on another, create a second widget with its own settings and its own embed code.

The Free plan includes one widget, the Light plan three, and the Standard plan an unlimited number. On the Free plan, new posts appear on your site once a day and a small “Powered by Social Feed” link is shown below the feed. On paid plans, the link is optional.

Frequently asked questions

Can the slider move automatically? No. The slider moves only when a visitor swipes, scrolls or clicks an arrow.

Can I set a different number of columns for phones? There is no separate phone setting. The widget reduces the number of columns automatically when the space is too narrow for images of about 100 pixels. In practice, most phones show about three columns.

Can I show the images in their original shape instead of squares? No. Tiles in the grid and the slider are always square. The full image is shown in the lightbox.

Why does my feed show fewer posts than I set? Usually because a filter is active (date range, keywords or post types), because your plan allows fewer posts, or because the account simply has fewer posts that match. Some posts that Instagram does not return an image for are also skipped.

New to Social Feed? Read what Social Feed by grip space is, compare it with other tools in our Instagram feed widget comparison, and check that your account is ready in the guide to Instagram professional accounts. Questions about layouts? Write to us at info@grip-space.co.jp.

Sources

  1. Google web.dev, “Cumulative Layout Shift (CLS)”: https://web.dev/articles/cls
  2. Google web.dev, “Largest Contentful Paint (LCP)”: https://web.dev/articles/lcp
  3. Google web.dev, “Browser-level image lazy loading for the web”: https://web.dev/articles/browser-level-image-lazy-loading
  4. W3C, “Understanding Success Criterion 2.2.2: Pause, Stop, Hide” (WCAG 2.2): https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html

Get your embed code in a few minutes. The Free plan needs no credit card.

Sign up free

More articles