homogenize margin and modify value depending on screen size