Translation:Mein Baby schläft in der Krippe.
Why can't I write "Mein Baby schläft im Krippe" ?
No. im = in dem. dem is used for masculine objects; Krippe is feminine.
You might want to have a look at this discussion http://duolingo.com/#!/comment/10694 concerning the meaning of 'die Krippe'.