Try sprinkling a teaspoon of all purpose flour over them in a bowl and give the raspberries a quick mix to coat. This should help them stay around the top or middle of your muffins while baking.