On sojourn of Brownian motion inside moving boundaries