fixing the order of the photos