tab content error fix

defined the positioning of elements in layouts 1 and 2 as relative to
fix the content disappearing issue