fix linking issues in gallery homepage