Finalizes some styles to gallery.