While the version where the first line ends in <wait.25> is preferred because it doesn't take up a whole line, the version with

/wait 25

will work the same. Are you activating some other macro after pressing your temp hide macro? Only one macro can be running at a time, so activating another macro during that 25 second wait will cancel the rest of the original macro. You can avoid this with a /macrolock (/mlock) at the beginning of your original macro, which will force it to finish before you can fire a different macro; whether this does or does not work with what you are trying to do however will be up to you.