# Before/ After image slider

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**. |


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.
| 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