I am sorry to alarm you but these may be symptoms of intussusception
. In this a part of the intestine pushes itself into the part ahead of it. This results into obstruction to the contents of intestines. Child presents with pain and passing red jelly like mucus instead of stools. This condition if diagnosed early can be treated with out surgery but after delay surgery is the only choice. I suggest you consult your doctor, preferably a pediatric surgeon soon. An ultrasound
of the abdomen will clinch the diagnosis.