A structural and 1H NMR relaxometric study on novel layered carboxyalkylaminophosphonate nanocrystals with Gd(iii) ions located in the framework