Co-sleeping dynamics