Fix for positioning in middle of page and variable height