handle first and last elements border-radius differently, when marked as active (set css depending on the parent class)