fix gallery, reduce code, css footer