Use classes instead of inline styles for hiding / showing

Not inherently opposed to it for this usecase.