change directory of gallery