stabilizing gallery centering and works size