In a cocktail shaker, combine the gin and Pimm's. Add ice and shake for 20 seconds. Strain the drink into a tall glass over ice and top with the soda. Vigorously shake the cucumber juice for 30 seconds. Spoon some of the foam onto the drink and serve right away.