fixed gallery scroll issue in compare mode