# Before/ After image slider

<figure><img src="/files/xx7NH85iN9GyZKoLVWDF" alt=""><figcaption></figcaption></figure>

With the **Before/ After image slider** section in Sleek, you can create horizontal or vertical sliders for your Shopify store, unleashing the creative potential of your site.&#x20;

Using a Before/ After image slider can bring you several benefits such as:&#x20;

* Boosting engagement on your Shopify store through interaction;
* Creating compelling visual stories;
* Showcasing impressive or persuasive presentations.

## How to add a Before/ After image slider

{% hint style="success" %}
Steps

1. In the theme editor **(Customize)**, click **Add section.**
2. Locate **Before/after image slider** section
3. Make necessary changes.
4. **Save.**
   {% endhint %}

To achieve the best result, it is recommended to use images of the same size and position, and there are visually distinguished differences between the before and after photos.

## How to edit a Before/ After image slider

### Section settings

#### General

Adjust the **Container** (Fixed width/Small) for this section.

<figure><img src="/files/gODsRpUIjmN9mT0QdJIa" alt=""><figcaption></figcaption></figure>

#### Section header

Select your preferred **Layout** for the section:

{% tabs %}
{% tab title="Vertical" %}

<figure><img src="/files/kBch6aCu0tUfCsz4ODxa" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Left column" %}

<figure><img src="/files/9je39RTxE95hSmsPYJxm" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Right Column" %}

<figure><img src="/files/yojkmpWUbUUQ17nQV0e7" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Add the content you want in the **Heading** to attract customers' attention

* Leave it blank if you do not want to display it&#x20;

You can also change the **Heading size** to:

* Heading xs
* Heading sm
* Heading md
* Heading lg
* Heading xl
* Heading 2xl
* Display md
* Display lg
* Display xl

<figure><img src="/files/sY2VZlNqA7JPjuJvmKfi" alt=""><figcaption></figcaption></figure>

#### Highlight text

[How to apply Highlight text to the section heading and block headings?](/sleek-theme/pages-global-sections/general-settings.md#highlight-text)

Use the provided text fields to add a suitable **Subheading** and **Description**.

* Leave them blank if you do not want to display them

<figure><img src="/files/uIDLifZCFvDtLzUAhUWL" alt=""><figcaption></figcaption></figure>

The call-to-action button will get the link from the provided **Button link** field.

Give the button a **label,** and a specific **Button style**:

* Primary button
* Secondary button
* Underline button

<figure><img src="/files/pWCLWYm20QCcawH0cQo2" alt=""><figcaption></figcaption></figure>

#### Before/ After image settings

The settings let you decide which **Direction** to slide (**Vertical**/ **Horizontal**).

<figure><img src="/files/XvCDwTcEsCcQEmpsTNeq" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Horizontal" %}

<figure><img src="/files/zyQBIODQvMKaLUIWjs5g" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Vertical" %}

<figure><img src="/files/CqoaW3lAwADeImQdrBGT" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Set the section's image height as **Adapt to image**/ **Small**/ **Medium**/ **High**.

<figure><img src="/files/HHYM9R6uSb9sWK7657QQ" alt=""><figcaption></figcaption></figure>

Change the **Image heading style** to **Badges** or **Plain text**.

<figure><img src="/files/eSNjaUtnedEBo21GiOyB" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Badges" %}

<figure><img src="/files/sA7vTOt2aJRP3GpgzowM" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Plain text" %}

<figure><img src="/files/sFcVDurR80vROtCcGRIm" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

You can also add **Product** to this section, so customers can easily navigate to the target product.

<div><figure><img src="/files/dPbVN0FCdwSRvtFZfthe" alt=""><figcaption></figcaption></figure> <figure><img src="/files/FWWIJ6cFth45YLc3WKOf" alt="" width="439"><figcaption></figcaption></figure></div>

### Block settings

There are 2 blocks of images in a Before/ After image slider.&#x20;

You need to fill in both blocks to make the slider work.

<figure><img src="/files/tXML4AJHWenyPHIOvTyA" alt=""><figcaption></figcaption></figure>

You can select images to display on desktop and mobile (**Image** and **Mobile image**).

Add an **Image heading** to your Before/ After image block and change the **Color scheme** if needed.&#x20;

<figure><img src="/files/jfc9a7OLiu90prc9QjB2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/sleek-theme/theme-sections/before-after-image-slider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
