Added ability to change position of the photos into gallery