tweaks to homepage gallery and gallery page