added method to get the margin sizes