various gallery improvements