As long as you don't overfill the tart shells with jam, they should not overflow as they're not cooked at a super high temperature. Fill the shells with jam to just below the top. If you find the jam is boiling over, your oven needs to be turned down slightly.