fix index page on resize