added method to get object length
improved layout parts handling