improved show/hide classes, fixed #3