reverse photos array from db