For deer get some highly perfumed bar soap and spread some 5-10 feet away from your garden so that it will not seep into the plants. the deer will not come near it. If you don't want to use soap you can save the hair from your hairbrush and do the same
For slugs you can buy the powder that is made out of very small shards of glass, it won't bother you but they hate it. Or you can use beer as bait to attract them in another area of your yard