How is your definition of "slavery" different from the experience of literally any other person under a capitalist system? Getting a job for most people in the world is not a matter of want, it is a matter of do or die.
It's different because they are forced to work AND not getting paid.
Under the proposed homeless people have two choices:
1) Live in the provided housing and work 20hrs a week for no pay.
2) Go to jail and possibly be forced to work anyway.