Build inputs only when they are visible