When you select Show Only Visible Slices, only reference lines that relate to the slices on the screen appear on the Localizer image.
From the main menu, click View --> Ref-lines --> Show On Localizer Only.
Or
Click to open the drop-down menu. Select Show On Localizer Only.