fix footer position, fix gallery preview