---
title: "gallery-13"
description: "Slider with two square images per view and the next one peeking, arrows on the edges and dots below."
category: "Gallery"
---
# gallery-13
Slider with two square images per view and the next one peeking, arrows on the edges and dots below.
## Installation
```bash
php artisan ui:add-block gallery-13
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [button](https://laralcn-ui.abdulkadersafi.com/ar/components/button.md) — the CLI installs it for you.
- component: [carousel](https://laralcn-ui.abdulkadersafi.com/ar/components/carousel.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/gallery-13.blade.php`
```blade
{{--
Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...];
leave src empty to show a placeholder.
Two square images per view with the next one peeking past the container
edge (one per view on mobile). Arrows sit half outside the edges from md
up, dots below.
--}}
@props([
'heading' => 'Image Gallery',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'images' => [
['src' => null, 'alt' => 'Placeholder image 1'],
['src' => null, 'alt' => 'Placeholder image 2'],
['src' => null, 'alt' => 'Placeholder image 3'],
['src' => null, 'alt' => 'Placeholder image 4'],
],
'previousLabel' => 'Previous slide',
'nextLabel' => 'Next slide',
'dotLabel' => 'Go to slide',
])
{{-- The slider spans the full section width. Its track is padded (and
scroll-padded) back to the 80rem container edge, so slides line up with
the heading and the neighbours peek into the page margin. --}}
merge(['class' => 'w-full overflow-hidden bg-background py-16 text-foreground md:py-24 lg:py-28']) }}>
{{ $heading }}
{{ $description }}
@foreach ($images as $image)
@if (!empty($image['src']))
@else
@endif
@endforeach
{{-- Centred on the slides: half of the dots row (3rem gap + 28px) is taken off. --}}
```