code for try_and_change_tagged_sliding_door_states