Have you read the Three-Body Problem trilogy? There's some stuff in the third book (Death's End) that sounds a lot like your dream. Specifically the different dimensions of space. If your dream didn't come from that book, perhaps you should consider writing some science fiction!