recompute dummy size dynamically + styling in css