Hi! To avoid them from sleeping in your bed, teaching commands like off will be necessary. Luring them to go off the bed by giving treat in the ground can help you teaching off command. This will take time and consistent training. Encouraging them to sleep in their bed by giving treats will also help in your situation.