Button on top of slider

In my application i have a problem with the GUI. I have a button on top of a horizontal-slider. Now when i try to press the button, it will instead trigger the sliding of the horizontal-slider and will not trigger the button event at all.

Am i doing something wrong or is there a fix for this?

For anyone else having this problem. I think it should be fixed when using a GUI.Window