when it was diz and aqua that was during sora sleeping when it was riku and sora that was after because birth by sleep is in the past as you should know when you saw young sora and riku. but when aqua got trapped in there sora was still young, so when she was at the shore time had past by some what to the part where sora is in the pod sleeping