How to combine pairs of images to single images?

The height of all the images is the same: 1080 px

While the width changes from the lowest being 480 px to the highest being 1918px