change gridding behavior for 2nd pdf image