fixed add and remove gallery