The rare planetary alignment will not be seen again until 2040