I have this design:
It's already created with html/css but I need to remove the extra linea for 1 and 5. This was achieved by adding a position absolute element to create the grey line but the size of the container's dot is responsive.
My idea was creating a background linear-gradient for each container like so:
for all:
background: linear-gradient(to right, grey 100%, transparent 0);
for the first one:
background: linear-gradient(to left, grey 50%, transparent 0);
for the last one:
background: linear-gradient(to right, grey 50%, transparent 0);
but I don't know how to make it smaller:

