adds position to galleries