remove bottom/top when top/bottom is set