It was a blatant dive. KWP did everything to avoid contact and Gayle threw himself at him Vardy-style, which he has a habit of doing.
If Gayle wasn't offside, then he would have been further back and away from the ball which would then have given KWP more time to reach and clear the ball. Either way, it wouldn't be a penalty.