I try to find slang dictionaries of the day, either written then or written as references for writers. There are usually reference materials for specific periods (like Regency or the Old West) that can make this easier.
Also, reading books and articles written in the time period that were current (like the Travis McGee series, actually, any "of the day" mystery series) is a help because those authors were using the slang of the day. Same with watching movies from the time period, if they exist. If you watch Saturday Night Live (70's), The Adventures of Buckaroo Banzai (80's), and Reality Bites (early 90's) you'd have a good basis to start with as well. Sometimes the movies are better for clothing of the period, but most of them will have some phrases that stand out now as clearly being of the day.