before to change gallary