fix order of images in gallery. fixes #31.