Tried experimenting with a loop for lower z-index values, but have now reverted back to another method.