(Also sticking an old foam earplug under the nut on the battery terminals is a good way to keep them in place whilst you fasten the bolt )
I have cable ties under my battery terminals. Serves two purposed. First, when you pull the ties upwards, it holds the nut inside the terminal. Second, the end of the tie gives you something to hold to lift/lower the battery