Have / keep something up one’s sleeve

To have/keep something up one’s sleeve is to keep an idea or trick secret until you need it at a later time, when it will surprise others and give you an advantage.