$('.bakeries-slider').each(function() {
$('.bakeries-slider__span', this).text(i => `${i + 1}.`);
});
for (const n of document.querySelectorAll('.bakeries-slider')) {
n.querySelectorAll('span').forEach((m, i) => m.innerText = ++i + '.');
}
[].forEach.call(document.getElementsByClassName('bakeries-slider'), n => {
const slides = n.getElementsByTagName('span');
for (let i = 0; i < slides.length; i++) {
slides[i].textContent = ''.concat(-~i, '.');
}
});