<div class="out"></div>
<button class="btn">click me</button>
const images = [ '...', '...', /* ... */ ];
const SHOW_MORE = 2;
document.querySelector('.btn').addEventListener('click', e => {
document.querySelector('.out').insertAdjacentHTML('beforeend', images
.splice(0, SHOW_MORE)
.map(n => `<div class="outImg"><img src="${n}"></div>`)
.join('')
);
e.target.disabled = !images.length;
});