CON-1809 | Fix overlapping of anchored element

you could optimize it by creating an array of cases and introducing a loop