change gallery's img size to fit