ENHANCMENT: fix positioning of gallery elements