Can’t have sex

When my husband and I start getting ready to go to bed our daughter has to sleep in the middle if she doesn’t she will throw a fit ! If she see us kiss or hug or cuddle she will start crying! She wants me all to her self! As soon as she has me to herself she will basically laugh at him and come lay down beside me with no problem what so ever! Idk what to do or why she’s doing this!!