You can read about removing parasites on this website, i have found the info extremely useful:
debugyourhealth.com
Your picture looks like mucus and some kind of roundworm. These are very common. Often worms or other parasitic infections coexist with bacterial, fungal overgrowth. Hence the inflammation. You will need to address leaky gut, diet and parasite removal all at the same time. Read around on the link above, she has got all these topics covered in great detail.