implement helper function for determination of new bounds given desired padding