method to hide scroller