adding photos and updating layout accordingly