Hide hide buttons when window shrinks