afterthought
af·ter·thought
/ˈæftɚˌθɑːt, Brit ˈɑːftəˌθɔːt/ noun , pl -thoughts [ count ]
: something done or said after other things because it was not thought of earlier
Then I remembered, almost as an afterthought, to feed the cat.
The fact was hidden deep in the report, almost as an afterthought.
The lounge was added to the office as an afterthought.