We are sorry to hear of your catching a fungus. That can happen in any public setting in which facilities are shared barefoot, and can happen even without such an exposure. In light of your concerns, we suggest
preparing at home and bringing your own slippers. This will also minimize spread to others.
If you are concerned about your husband catching the fungus, you can wear socks when you are in contact, but more important, do not share socks or slippers with him.
Topical antifungal cream should prevent contagion shortly after application. It is not clear from your description if the fungus is on the skin of the toe or the toenail. If the former, and there is no improvement after a few weeks, then you should return to your physician. If it is in the nail, improvement takes months as it takes time for normal nail to grow. It is also not clear what treatment you are using. In all cases, if the problem does not appear to be improving you should consult with the health care provider with whom you began the treatment.