Improving add_padding. Now it can add padding to each side indenpendently