changed the order of displaying photos