fixing flicker issue on image hover