<% 
  use crate::components::Pagination;
  use rand::Rng;
  let mut rng = rand::thread_rng();
  let identifier = rng.gen::<u16>();
%>

<div data-controller="slider" data-slider-index-value="<%- default_index%>" data-slider-identifier-value="<%- identifier %>">
  <div class="overflow-hidden w-100" data-action="pagination:change->slider#nextFromPagination pagination:connected->slider#changePaginationInit" style="position: relative">
    <div class="d-flex flex-row w-100 item-container" data-slider-target="con