gallery toggle and delete