The rule you are talking about applies to the normal short stay visas; and it there to prevent people from working/residintresiding in Dubai without a proper work or permanent resident visa.
You can apply for your transit visa in advance (it takes 3-4 days to process) here.