fix bug in footer positioning such that works with page resize