Added setTopBottomOffset method to set top and bottom offset.