pan within bounds