Struggling with these questions

Hi,

i would like to know why it is incorrect to say "dopo dei pasti" ( the right one is "dopo i pasti" )while it is correct to say "prima dei pasti"

Also i would like to know if "di " is the singular of "dei".

Thank you very much