The mother lay down beside the baby in bed.

Literal

Mother [topic-は] bed [at-で] baby [possessive-の] beside [at-で] lay-down

横になる = 'to lie down' (intransitive). Contrast with 横にする (transitive: to lay something down). 側 (そば) = beside.