fix css3 performance issue