Handle hidden nodes via css class instead of only setting the display property .