To make this Raspberry Jam Coconut Slice gluten-free, substitute the all-purpose flour with a gluten-free 1:1 baking flour blend. Ensure the baking blend contains xanthan gum or a similar binding agent for proper texture. Always verify that the jam and coconut products are certified gluten-free.