top and bottom offsets response to position