Centering of gallery