Five children and two adults were taken to hospital after a caustic chemical was used on a children's slip and slide.