modify gallery