made tpk-layer sample responsive