Added zIndex property to layers