UI element for Z-targeting

any Idea why it does not work?