add paddings to the network