it was an unfortunate remark , for the dragon spouted terrific flames after him , and fast though he sped up the slope , he had not gone nearly far enough to be comfortable before the ghastly head of smaug was thrust against the opening behind .