Edit file of gallery