create a dynamic scrollBar