fixed flicker bug in gallery thumbnail on hover