# Before/ After image slider ![Before/after image slider with a portrait split down the middle by a drag handle, labeled Before on the left and After on the right](https://docs-assets.foxecom.app/minimog-theme/3853d800-de7a-4b41-b502-5f4abe88e183.jpg) Show the difference your product makes by placing two images side by side, such as a result before and after use. Customers drag the slider across the images to reveal each side. ## How to add Before/after image slider 1. Open the theme editor (**Edit theme**). 2. Click **Add section** under **Template** in the sidebar. 3. Select **Before/after image slider**. 4. Choose a **Layout** and an **Image height** under **Settings**. 5. Click the first **Before/after image slider** block under the section. 6. Select an image in **Image**. 7. Repeat steps 5 and 6 for the second block. 8. Click **Save**. If **Before/after image slider** is already on the page, click it to edit it instead. ## Section settings **General** (**Container type** and **Color scheme**), **Section header**, **Section Padding**, **Advanced**, and **Custom Attributes** work the same as in every section. See [Common section settings](https://docs.foxecom.com/minimog-theme/theme-sections/common-section-settings). ### Settings The direction of the slider and the height of the images. | Setting | Description | Options | | ---------------- | ----------------------------------------------- | -------------------------------------------------------- | | **Layout** | Which way customers drag to compare the images. | **Horizontal** or **Vertical**. | | **Image height** | The height of the images in the slider. | **Adapt to image**, **Small**, **Medium**, or **Large**. |
![Horizontal layout: a vertical divider with a drag handle splits the portrait into Before on the left and After on the right](https://docs-assets.foxecom.app/minimog-theme/26b5a223-6df4-4219-aae2-5650eae28513.png) ![Vertical layout: a horizontal divider with a drag handle splits the portrait into Before on top and After at the bottom](https://docs-assets.foxecom.app/minimog-theme/a4f53cb2-503f-442c-9e54-f4b541f55717.png) Use **Horizontal** for side-by-side comparisons and **Vertical** for top-and-bottom comparisons, depending on how your images are composed. ## Blocks Each **Before/after image slider** block is one side of the comparison. The section holds exactly 2 blocks, and both need an image for the slider to work. Before/after image slider section in the sidebar with its Before and After blocks, and Add Before/after image slider (2/2) turned gray | Setting | Description | Options | | ---------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | **Image** | The image for this side on desktop and tablet. | Click **Select** to choose an image. | | **Image mobile** | A separate image for this side on mobile. | Click **Select** to choose an image. Add one when the desktop image doesn't fit smaller screens well. | | **Heading** | The label shown on this side of the slider. | Enter text, such as `Before` or `After`. |
Use two images with the same size and framing, so the comparison is easy to see. Both images show in the theme editor preview, with your **Before** and **After** labels on each side of the slider. ## Related articles Common section settings Theme sections overview