bug fix: gallery layout