spacing, slightly improve semantics and also fix bug with clicking on the gallery when not visible