fixes position of items within layers