convert display panel size to rem and add padding