solving flicker problem in Chrome