Make sure pixel gap is valid (even)