based on video heigth, define height of a boxes