fixed HTML elements rendering in incorrect position and moving to correct position after delay