Fix location of gallery directory

Fix #1008