trying to improve curtain behaviour and loading times