I created an image gallery and I intend to change the position between them. For this I am using the …