rearrange photos in gallery