dynamically adjust span-size based on device