Airing them outdoors in the shade, laying on sheets is a good way to start. If that isn't feasible, then a bath in vinegar and baking soda may help.
Don't let them agitate but for a minute... let them soak and then spin out the water. Fill up the machine with rinse water, let agitate for a minute and then spin the water out. Use the delicate cycle :D:D:D