add preview class.