change class names to "in" and "out"
and make sure it works on safari. still need to check on firefox.