It looks like you've got spaces in the gallery tags: { gallery }babies{ /gallery } should be {gallery}babies{/gallery}. I hope that works for you as I've got the same problem (code appearing) but I haven't got the spaces in the tags.
More