he stood now directly on the edge of the gunwale , with one foot on the inside of the boat , and the other on the outside , only a three inch piece of wood separating him from the air and the waves beneath .