Autohide header and footer on scroll