make size attributes dynamic to support screen rotation