clear layers before displaying them