Fixed the maths for bottom and top margins !