Gallery markup (2/2), make galleries on click