Pawn on the seventh, your king in front of it, and the black rook on the a-file, ready to check from the side. The rule: side checks only work with three files between the rook and the pawn. Here only two lie between the a-file and your d-pawn, the b- and c-files, so your king can walk toward the rook and the checks run out.