Adsense on Image Gallery

I noticed on quite a lot of sites that they have created a gallery that goes to a new page for each gallery image with adsense on each image, what plugin is able to do this?

I want to enter my adsense code and upload around 20 images, that open a new page for each image. I can only figure out how to do this manually by creating say 20 posts with the image in the post and creating a "previous" and "next" link that connects - to time consuming so looking for a plugin that will allow me to create a gallery that has the adsense code below.