The origin of the "slime" is the Shoggoth from H.P. Lovecraft, a downright horrifying creature that appeared later as a 1950's horror/thriller monster called "The Blob" in the movie of the same name.
It morphed into the "Gelatinous Cube" in early DnD, but DnD later added a low-level monster...